QT += core widgets sql
QT += core network
CONFIG += c++17

TARGET = Smart_Sell
TEMPLATE = app

# 定义应用程序信息
VERSION = 1.0.0
QMAKE_TARGET_COMPANY = "Smart Vending Machine"
QMAKE_TARGET_PRODUCT = "智动售货机管理系统"
QMAKE_TARGET_DESCRIPTION = "智动售货机管理端软件"
QMAKE_TARGET_COPYRIGHT = "Copyright 2024"

# 源文件
SOURCES += \
    src/baifa_cloud_client.cpp \
    src/main.cpp \
    src/loginwindow.cpp \
    src/mainwindow.cpp \
    src/monitorwindow.cpp \
    src/databasewindow.cpp \
    src/database.cpp \
    src/deviceinfowindow.cpp

# 头文件
HEADERS += \
    src/baifa_cloud_client.h \
    src/loginwindow.h \
    src/mainwindow.h \
    src/monitorwindow.h \
    src/databasewindow.h \
    src/database.h \
    src/deviceinfowindow.h

# UI文件
FORMS += \
    ui/loginwindow.ui \
    ui/mainwindow.ui \
    ui/monitorwindow.ui \
    ui/databasewindow.ui \
    ui/deviceinfowindow.ui

# 输出目录
DESTDIR = bin
OBJECTS_DIR = build/obj
MOC_DIR = build/moc
UI_DIR = build/ui
RCC_DIR = build/rcc

# Windows特定配置
win32 {
    CONFIG += windows
}

# 调试和发布配置
CONFIG(debug, debug|release) {
    TARGET = $$join(TARGET,,,_debug)
    DEFINES += DEBUG
}

CONFIG(release, debug|release) {
    DEFINES += QT_NO_DEBUG_OUTPUT
}

# 确保输出目录存在
mkpath($$DESTDIR)
mkpath($$OBJECTS_DIR)
mkpath($$MOC_DIR)
mkpath($$UI_DIR)
mkpath($$RCC_DIR)

DISTFILES +=
